package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.Purchase;

/**
 * 进货Mapper接口
 * 
 * @author ruoyi
 * @date 2024-06-06
 */
public interface PurchaseMapper 
{
    /**
     * 查询进货
     * 
     * @param purchaseId 进货主键
     * @return 进货
     */
    public Purchase selectPurchaseByPurchaseId(Long purchaseId);

    /**
     * 查询进货列表
     * 
     * @param purchase 进货
     * @return 进货集合
     */
    public List<Purchase> selectPurchaseList(Purchase purchase);

    /**
     * 新增进货
     * 
     * @param purchase 进货
     * @return 结果
     */
    public int insertPurchase(Purchase purchase);

    /**
     * 修改进货
     * 
     * @param purchase 进货
     * @return 结果
     */
    public int updatePurchase(Purchase purchase);

    /**
     * 删除进货
     * 
     * @param purchaseId 进货主键
     * @return 结果
     */
    public int deletePurchaseByPurchaseId(Long purchaseId);

    /**
     * 批量删除进货
     * 
     * @param purchaseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseByPurchaseIds(Long[] purchaseIds);
}
